<?php

use Maowenke\tool\Mtool;

require_once '../../vendor/autoload.php';
$a = [
    'long' => '116.43620200729366',
    'lat' => '39.916880160714435'
];
$b = [
    'long' => '116.4356870231628',
    'lat' => '39.908560377800676'
];
$res = Mtool::getDistance($a,$b,'m');
echo "<pre>";
print_r($res);//927.2
exit;